﻿<Window x:Class="FastNet.Examples.ChatClient.Windows.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
	<Window.CommandBindings>
		<CommandBinding Command="Save" CanExecute="OnSendCanExecute" Executed="OnSendExecuted" />
	</Window.CommandBindings>
    <Grid>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="30" />
		</Grid.RowDefinitions>
		
		<TextBox Name="InputLog" IsReadOnly="True" Margin="10" VerticalScrollBarVisibility="Visible" />
		
		<Grid Grid.Row="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition />
				<ColumnDefinition Width="50" />
			</Grid.ColumnDefinitions>
			
			<TextBox Name="InputMessage" Margin="10,0,10,0" VerticalAlignment="Center" />
			
			<Button Grid.Column="1" Content="Send" Margin="2" Command="Save" IsDefault="True" />
		</Grid>
	</Grid>
</Window>
